<?php


namespace app\index\controller;


use think\App;
use think\Controller;
use think\facade\Log;
use think\facade\Request;


/**
 * Class TestRequest
 * @package app\index\controller
 * @route('test')
 */
class TestRequest extends Controller
{
    public function __construct(App $app = null)
    {
        parent::__construct($app);
        $requestMethod = Request::method();
        Log::info('请求方式:' . $requestMethod);

    }


    public function index()
    {

    }
}